Skip to content

Fix loading the proper home-$posttype.php file and fix phpunit - #6

Closed
losted wants to merge 2 commits into
nlemoine:mainfrom
losted:fix/template-path
Closed

Fix loading the proper home-$posttype.php file and fix phpunit#6
losted wants to merge 2 commits into
nlemoine:mainfrom
losted:fix/template-path

Conversation

@losted

@losted losted commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Related to this issue: #5

I added .php in set_home_template_hierarchy() so that it load the right template file for custom post type archives.

Also removed the prefix and suffix in phpunit.xml.dist and renamed the test file/class so that PHPUnit properly find it.

@nlemoine

Copy link
Copy Markdown
Owner

Salut @losted,

Thanks for the PR. The current version is a bit messy and I recently started to rewrite the whole plugin with better code, tests, etc. in order to release a proper/stable version 1.

You can track progress in #7. The issue you're fixing is already fixed in that branch. I'll be glad if you could give it a try. The plugin didn't change much, only making base post type slug replacement optional:

Capture d’écran 2026-03-22 à 10 27 34

I'll notify you when it's ready to be released (should be quite soon).

@losted

losted commented Mar 23, 2026

Copy link
Copy Markdown
Contributor Author

I tried the branch it works perfectly! We don't need a stable version right away but I'll keep an eye for the release of 1.0!

Merci!

@nlemoine nlemoine mentioned this pull request Mar 23, 2026
@losted losted closed this by deleting the head repository Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants